<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<div class="t_bar">
	项目基本情况
</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	cellspacing="1" id="pro_basic_Info">
	<col style="width: 20%" />
	<col style="width: 30%" />
	<col style="width: 20%" />
	<col style="width: 30%" />
	<tr>
		<td align="right" width="20%">
			<span class="color_red">*</span>
			项目名称：
		</td>
		<td colspan="3">
			<input id="zh_title" name="proposal/zh_title" label="项目名称"
				type="text" class="required maxlength:100"
				style="width: 725px;"
				value="<x:out select="$xmlData/data/proposal/zh_title" />" />
		</td>
	</tr>
	<tr>
		<td align="right" width="20%">
			<span class="color_red">*</span>
			归口管理部门：
		</td>
		<td>
			<c:set var="recomend_org">
				{'id':'<x:out select="$xmlData/data/proposal/recomend_org_value" />',
				'name':'<x:out select="$xmlData/data/proposal/recomend_org_name" />'
				}					
			</c:set>
			<cpt:tree id="recomend_org" key="recommended_org" cacheable="false"
				className="hn_iuput_kuang required selectWidth3" readonly="true"
				value="${recomend_org}" label="归口管理部门" showPattern="all"
				shieldPattern="0" onClick="initTreeValue2">
			</cpt:tree>
			<input type="hidden" id="recomend_org_value"
				name="proposal/recomend_org_value"
				value="<x:out select="$xmlData/data/proposal/recomend_org_value" />">
			<input type="hidden" name="proposal/recomend_org_name"
				value="<x:out select="$xmlData/data/proposal/recomend_org_name" />">
		</td>
		<td align="right" width="20%">
			<span class="color_red">*</span>
			申报时间：
		</td>
		<td>
			<c:set var="submit_date">
				<x:out select="$xmlData/data/proposal/submit_date" />
			</c:set>
			<cpt:date id="submit_date" value="${submit_date }"
				className="required date" label="申报时间"
				name="proposal/submit_date"></cpt:date>
		</td>
	</tr>
	<tr>
		<td align="right">
			<span class="color_red">*</span>
			申请奖励经费类别：
		</td>
		<td colspan="3">
			<c:set var="award_fund_type"><x:out select="$xmlData/data/proposal/award_fund_type_value" /></c:set> 
			<cpt:checkbox key="award_fund_type" name="award_fund_type"  repeatColumn="4" value="${award_fund_type }" tagType="radio"></cpt:checkbox>
			<input type="hidden" id="type_value" name="proposal/award_fund_type_value" class="required" value="${award_fund_type}" label="申请奖励经费类别"> 
			<input type="hidden" name="proposal/award_fund_type_name" value="<x:out select="$xmlData/data/proposal/award_fund_type_name" />">
		</td>
	</tr>
	<tr>
		<td align="right">
			<span class="color_red">*</span>
			项目联系人姓名：
		</td>
		<td>
			<input name="proposal/project/lxr_name"
				value="<x:out select="$xmlData/data/proposal/project/lxr_name" />"
				required class="required maxlength:30" label="项目联系人姓名" />
		</td>
		<td align="right">
			<span class="color_red">*</span>
			联系人手机：
		</td>
		<td>
			<input name="proposal/project/lxr_mobile" style="text-align: left"
				value="<x:out select="$xmlData/data/proposal/project/lxr_mobile" />"
				required class="required mobile" label="联系人手机" style="text-align:right"
				onfocus="InitInput.setNumber(this,11,0,0);" />
		</td>
	</tr>
	<tr>
		<td align="right">
			<span class="color_red">*</span>
			通讯地址：
		</td>
		<td>
			<input name="proposal/project/contract_address" 
				value="<x:out select="$xmlData/data/proposal/project/contract_address" />" 
				class="required maxlength:100" label="通讯地址"/>
		</td>
		<td align="right">
			<span class="color_red">*</span>
			电子邮箱：
		</td>
		<td>
			<input name="proposal/project/contract_eamil" 
				value="<x:out select="$xmlData/data/proposal/project/contract_eamil" />" 
				class="required email" label="电子邮箱" maxLength="20"/>
		</td>
	</tr>
	<tr>
		<td align="right">
			<span class="color_red">*</span>
			单位自筹资金（万元） ：
		</td>
		<td>
			<input id="" name="proposal/project_info/self_money" label="单位自筹资金" 
				type="text" required class="required" style="text-align:right"
				value="<x:out select="$xmlData/data/proposal/project_info/self_money" />"
				onfocus="InitInput.setNumber(this,9,2,2)" />
		</td>
		<td align="right">
			<span class="color_red">*</span>
			项目申请金额（万元）：
		</td>
		<td>
			<input id="apply_money" name="proposal/project_info/apply_money"
				label="项目申请金额" type="text" required class="required" style="text-align:right"
				value="<x:out select="$xmlData/data/proposal/project_info/apply_money" />"
				onfocus="InitInput.setNumber(this,9,2,2)" />
		</td>
	</tr>
	<tr>
		<td align="right">
			<span class="color_red">*</span>
			上级批文机关：
		</td>
		<td>
			<input id="" name="proposal/project_info/higher_org" label="上级批文机关"
				type="text" required class="required maxlength:30"
				value="<x:out select="$xmlData/data/proposal/project_info/higher_org" />" />
		</td>
		<td align="right">
			<span class="color_red">*</span>
			批文时间：
		</td>
		<td>
			<c:set var="auth_date">
				<x:out select="$xmlData/data/proposal/project_info/auth_date" />
			</c:set>
			<cpt:date id="auth_date" value="${auth_date }"
				className="required date beforeToday" label="批文时间"
				name="proposal/project_info/auth_date"></cpt:date>
		</td>
	</tr>
	<tr>
		<td align="right">
			<span class="color_red">*</span>
			项目报审级次（省补助资金拨付所属财政局）：
		</td>
		<td colspan="3">
			<c:set var="sub_step">
				{'id':'<x:out select="$xmlData/data/proposal/sub_step_value" />',
			 	 'name':'<x:out select="$xmlData/data/proposal/sub_step_name" />'}
			</c:set>
			<cpt:tree key="sub_step" cacheable="false"
				className="hn_iuput_kuang" readonly="true" value="${sub_step}"
			 	id="sub_step" showPattern="all" shieldPattern="0"
				topCheckbox="false" onClick="initTreeValueExt" />
			<input type="hidden" id="sub_step_value"
				name="proposal/sub_step_value" class="required"
				value="<x:out select="$xmlData/data/proposal/sub_step_value" />"
				label="项目报审级次">
			<input type="hidden" name="proposal/sub_step_name"
				value="<x:out select="$xmlData/data/proposal/sub_step_name" />">
		</td>
	</tr>
	<tr>
		<td align="right">
			<span class="color_red">*</span>
			经费用途<br/>（限280字）：
		</td>
		<td colspan="3">
			<textarea rows="5" cols="60" name="proposal/money_use_way" style="width:98%" class="input_textarea maxlength:280 required" label="经费用途"><x:out select="$xmlData/data/proposal/money_use_way"/></textarea>
			<input type="hidden" name="proposal/money_use_way_hidden" value="<x:out select="$xmlData/data/proposal/money_use_way_hidden"/>" />
			<!--项目类别  -->
			<input type="hidden" name="proposal/project/project_type_name"
				value="国家高新技术产业开发区、高新技术产业化基地、火炬特色产业基地和省级高新技术产业开发区奖励" />
			<!--申请单位  -->
			<input type="hidden" name="proposal/project/apply_org"
				value="<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_name"/>" />
			<!--单位地址  -->
			<input type="hidden" name="proposal/project/apply_org_address"
				value="<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/address"/> " />

			<!--项目联系人 电子邮箱-->
			<input type="hidden" name="proposal/project/lxr_eamil"
				value="<x:out select="$xmlData/data/proposal/org_lxr_eamil"/> " />
			<!--项目联系人 联系电话-->
			<input type="hidden" name="proposal/project/lxr_tel"
				value="<x:out select="$xmlData/data/proposal/org_lxr_tel"/> " />

		</td>
	</tr>

</table>















<script type="text/javascript">
	$(function() {
		$("#pro_basic_Info tr:even").addClass("li_1");
		$("#pro_basic_Info tr:odd").addClass("li_2");
	});

	function initTreeValueExt(treeId, treeNode) {
		if ((treeNode && treeNode.isParent)) {
			scmWarn("请选择具体的" + $("#" + treeId).attr("label"));
			$("#" + treeId).val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val("");
			return false;
		}
		var str = treeNode.name;
		var obj = treeNode.parentNode;
		while (obj != null) {
			str = obj.name + "-" + str;
			obj = obj.parentNode;
		}

		$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val(str);
	}
</script>
